package com.kai.state;

/**
 * @Author Mr.Yan
 * @create 2022/3/24 12:03
 * @description:
 */
public class RunningState extends LiftState{
    @Override
    void open() {

    }

    @Override
    void close() {

    }

    @Override
    void run() {
        System.out.println("电梯运行");
    }

    @Override
    void stop() {
        super.context.setLiftState(new StoppingState());
        super.context.stop();
    }
}
